/*
 * @Description:
 * @Author: mxy
 * @Date: 2022-12-09 20:07:59
 * @LastEditors: mxy
 * @LastEditTime: 2022-12-09 21:47:22
 */
import request from '@/utils/request'
export function articleListAPI (current, sorter) {
  return request.get('/h5/interview/query', {
    params: {
      current,
      pageSize: 10,
      sorter
    }
  })
}

export function articleDetail (id) {
  return request.get('/h5/interview/show', {
    params: { id }
  })
}

export function likeCollectAPI (id, optType) {
  return request.post('/h5/interview/opt', { id, optType })
}

export function likeCollectListAPI (optType, page) {
  return request.get('/h5/interview/opt/list', {
    params: {
      optType,
      pageSize: 10,
      page
    }
  })
}
